package com.xymtop.Service;

import com.xymtop.Entity.Colloges;
import com.xymtop.Server.Util.DBService;

import java.util.List;

/**
 * @ClassName : Colloges
 * @Description : 院系的控制器
 * @Author : 肖叶茂
 * @Date: 2022/12/13  17:21
 */
public class CollogesService {
   public List<Object> getList() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
       List<Object> objects = DBService.Get("SELECT * FROM `javaweb`.`colleges`",Colloges.class.getCanonicalName());
       if(objects.isEmpty()){
           return  null;
       }else {
           return objects;
       }
   }
}
